package cn.swpu.dao.impl;

import cn.swpu.bose.DaoSupportImpl;
import cn.swpu.dao.RoleDao;
import cn.swpu.domin.Role;
import org.springframework.stereotype.Repository;

/**
 * Created by 11616 on 2016/7/8.
 */
@Deprecated
@Repository
public class RoleDaoImpl extends DaoSupportImpl<Role> implements RoleDao {
    @Override
    public void delete(Long id) {
       Role  obj =  findById(id);
        if(obj != null){
            getSession().delete(obj);
        }
    }
}
